package com.mashibing.mashibing;

import com.alibaba.fastjson.JSONObject;

import java.sql.Timestamp;

public class T_FastJson {

    public static void main(String[] args) {
        try {
//            String time = "1970-01-01 00:00:00";
            String time = "1970-01-01 00:00:00.000000000.000000";

            JSONObject jsonObject = new JSONObject();
            jsonObject.put("time",time);
            Timestamp timestamp = jsonObject.getTimestamp("time");
            System.out.println(timestamp);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
